<template lang="">
 <div>
      
       <input type="text" 
       @keyup.enter="add"
        v-model.trim="keyword">
    
 </div>
</template>
<script>
export default {
    name:"Header",
  data() {
    return {
        keyword:""
    };
  },
  methods: {
    add(){
        this.$emit('add',this.keyword )
        this.keyword = ""
    }
  },
};
